/**
 * 
 */
package com.gragra.nounIdentification;
/**
 * implements MaxAssessment with a linear increase the number returns is always (iterations+1)*increase
 * @author Christoph Teichmann
 * created Mar 26, 2013 10:57:53 AM
 * @version 0.1
 */
public class LinearIncreasingMax implements MaxAssessment
{
	/**
	 * constructs a new instance with the given increases
	 * @param frameMaxIncrease
	 * @param nounMaxIncrease
	 */
	public LinearIncreasingMax(int frameMaxIncrease, int wordMaxIncrease)
	{
		this.frameMaxIncrease = frameMaxIncrease;
		this.nounMaxIncrease = wordMaxIncrease;
	}
	/**
	 * the increase in the number of frames used
	 */
	private int frameMaxIncrease;
	/**
	 * the increase in the number of nouns used
	 */
	private int nounMaxIncrease;
	/* (non-Javadoc)
	 * @see com.gragra.nounIdentification.MaxAssessment#getMaxNouns(int, com.gragra.nounIdentification.BaseNounIdentifier)
	 */
	@Override
	public int getMaxNouns(int iteration, BaseNounIdentifier fixedNounIdentifier)
	{return (iteration+1)*nounMaxIncrease;}
	/* (non-Javadoc)
	 * @see com.gragra.nounIdentification.MaxAssessment#getMaxFrames(int, com.gragra.nounIdentification.NounIdentifier)
	 */
	@Override
	public int getMaxFrames(int iteration, NounIdentifier nounIdentifier)
	{return (iteration+1)*frameMaxIncrease;}
}